package com.enterprise.projectManager.resource;

import com.enterprise.projectManager.model.Count;
import com.enterprise.projectManager.service.implemention.CountServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/crebas/count")
public class CountResource {
    private final CountServiceImpl countServiceImpl;
    @GetMapping("/synchronization")
    public ResponseEntity<Count> synchronization ()
    {
        return ResponseEntity.ok(countServiceImpl.synchronization());
    }
}
